package com.pmsystem.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class AccidentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AccidentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andAccidentIdIsNull() {
            addCriterion("accident_id is null");
            return (Criteria) this;
        }

        public Criteria andAccidentIdIsNotNull() {
            addCriterion("accident_id is not null");
            return (Criteria) this;
        }

        public Criteria andAccidentIdEqualTo(Integer value) {
            addCriterion("accident_id =", value, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentIdNotEqualTo(Integer value) {
            addCriterion("accident_id <>", value, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentIdGreaterThan(Integer value) {
            addCriterion("accident_id >", value, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("accident_id >=", value, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentIdLessThan(Integer value) {
            addCriterion("accident_id <", value, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentIdLessThanOrEqualTo(Integer value) {
            addCriterion("accident_id <=", value, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentIdIn(List<Integer> values) {
            addCriterion("accident_id in", values, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentIdNotIn(List<Integer> values) {
            addCriterion("accident_id not in", values, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentIdBetween(Integer value1, Integer value2) {
            addCriterion("accident_id between", value1, value2, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("accident_id not between", value1, value2, "accidentId");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleIsNull() {
            addCriterion("accident_title is null");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleIsNotNull() {
            addCriterion("accident_title is not null");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleEqualTo(String value) {
            addCriterion("accident_title =", value, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleNotEqualTo(String value) {
            addCriterion("accident_title <>", value, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleGreaterThan(String value) {
            addCriterion("accident_title >", value, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleGreaterThanOrEqualTo(String value) {
            addCriterion("accident_title >=", value, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleLessThan(String value) {
            addCriterion("accident_title <", value, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleLessThanOrEqualTo(String value) {
            addCriterion("accident_title <=", value, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleLike(String value) {
            addCriterion("accident_title like", value, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleNotLike(String value) {
            addCriterion("accident_title not like", value, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleIn(List<String> values) {
            addCriterion("accident_title in", values, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleNotIn(List<String> values) {
            addCriterion("accident_title not in", values, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleBetween(String value1, String value2) {
            addCriterion("accident_title between", value1, value2, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentTitleNotBetween(String value1, String value2) {
            addCriterion("accident_title not between", value1, value2, "accidentTitle");
            return (Criteria) this;
        }

        public Criteria andAccidentContentIsNull() {
            addCriterion("accident_content is null");
            return (Criteria) this;
        }

        public Criteria andAccidentContentIsNotNull() {
            addCriterion("accident_content is not null");
            return (Criteria) this;
        }

        public Criteria andAccidentContentEqualTo(String value) {
            addCriterion("accident_content =", value, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentNotEqualTo(String value) {
            addCriterion("accident_content <>", value, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentGreaterThan(String value) {
            addCriterion("accident_content >", value, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentGreaterThanOrEqualTo(String value) {
            addCriterion("accident_content >=", value, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentLessThan(String value) {
            addCriterion("accident_content <", value, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentLessThanOrEqualTo(String value) {
            addCriterion("accident_content <=", value, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentLike(String value) {
            addCriterion("accident_content like", value, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentNotLike(String value) {
            addCriterion("accident_content not like", value, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentIn(List<String> values) {
            addCriterion("accident_content in", values, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentNotIn(List<String> values) {
            addCriterion("accident_content not in", values, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentBetween(String value1, String value2) {
            addCriterion("accident_content between", value1, value2, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentContentNotBetween(String value1, String value2) {
            addCriterion("accident_content not between", value1, value2, "accidentContent");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeIsNull() {
            addCriterion("accident_time is null");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeIsNotNull() {
            addCriterion("accident_time is not null");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeEqualTo(Date value) {
            addCriterionForJDBCDate("accident_time =", value, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("accident_time <>", value, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("accident_time >", value, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("accident_time >=", value, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeLessThan(Date value) {
            addCriterionForJDBCDate("accident_time <", value, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("accident_time <=", value, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeIn(List<Date> values) {
            addCriterionForJDBCDate("accident_time in", values, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("accident_time not in", values, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("accident_time between", value1, value2, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andAccidentTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("accident_time not between", value1, value2, "accidentTime");
            return (Criteria) this;
        }

        public Criteria andProcessingIsNull() {
            addCriterion("processing is null");
            return (Criteria) this;
        }

        public Criteria andProcessingIsNotNull() {
            addCriterion("processing is not null");
            return (Criteria) this;
        }

        public Criteria andProcessingEqualTo(String value) {
            addCriterion("processing =", value, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingNotEqualTo(String value) {
            addCriterion("processing <>", value, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingGreaterThan(String value) {
            addCriterion("processing >", value, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingGreaterThanOrEqualTo(String value) {
            addCriterion("processing >=", value, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingLessThan(String value) {
            addCriterion("processing <", value, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingLessThanOrEqualTo(String value) {
            addCriterion("processing <=", value, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingLike(String value) {
            addCriterion("processing like", value, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingNotLike(String value) {
            addCriterion("processing not like", value, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingIn(List<String> values) {
            addCriterion("processing in", values, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingNotIn(List<String> values) {
            addCriterion("processing not in", values, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingBetween(String value1, String value2) {
            addCriterion("processing between", value1, value2, "processing");
            return (Criteria) this;
        }

        public Criteria andProcessingNotBetween(String value1, String value2) {
            addCriterion("processing not between", value1, value2, "processing");
            return (Criteria) this;
        }

        public Criteria andResultIsNull() {
            addCriterion("result is null");
            return (Criteria) this;
        }

        public Criteria andResultIsNotNull() {
            addCriterion("result is not null");
            return (Criteria) this;
        }

        public Criteria andResultEqualTo(String value) {
            addCriterion("result =", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotEqualTo(String value) {
            addCriterion("result <>", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThan(String value) {
            addCriterion("result >", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThanOrEqualTo(String value) {
            addCriterion("result >=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThan(String value) {
            addCriterion("result <", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThanOrEqualTo(String value) {
            addCriterion("result <=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLike(String value) {
            addCriterion("result like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotLike(String value) {
            addCriterion("result not like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultIn(List<String> values) {
            addCriterion("result in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotIn(List<String> values) {
            addCriterion("result not in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultBetween(String value1, String value2) {
            addCriterion("result between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotBetween(String value1, String value2) {
            addCriterion("result not between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andRecorderIsNull() {
            addCriterion("recorder is null");
            return (Criteria) this;
        }

        public Criteria andRecorderIsNotNull() {
            addCriterion("recorder is not null");
            return (Criteria) this;
        }

        public Criteria andRecorderEqualTo(String value) {
            addCriterion("recorder =", value, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderNotEqualTo(String value) {
            addCriterion("recorder <>", value, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderGreaterThan(String value) {
            addCriterion("recorder >", value, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderGreaterThanOrEqualTo(String value) {
            addCriterion("recorder >=", value, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderLessThan(String value) {
            addCriterion("recorder <", value, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderLessThanOrEqualTo(String value) {
            addCriterion("recorder <=", value, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderLike(String value) {
            addCriterion("recorder like", value, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderNotLike(String value) {
            addCriterion("recorder not like", value, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderIn(List<String> values) {
            addCriterion("recorder in", values, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderNotIn(List<String> values) {
            addCriterion("recorder not in", values, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderBetween(String value1, String value2) {
            addCriterion("recorder between", value1, value2, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderNotBetween(String value1, String value2) {
            addCriterion("recorder not between", value1, value2, "recorder");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneIsNull() {
            addCriterion("recorder_telephone is null");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneIsNotNull() {
            addCriterion("recorder_telephone is not null");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneEqualTo(String value) {
            addCriterion("recorder_telephone =", value, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneNotEqualTo(String value) {
            addCriterion("recorder_telephone <>", value, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneGreaterThan(String value) {
            addCriterion("recorder_telephone >", value, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneGreaterThanOrEqualTo(String value) {
            addCriterion("recorder_telephone >=", value, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneLessThan(String value) {
            addCriterion("recorder_telephone <", value, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneLessThanOrEqualTo(String value) {
            addCriterion("recorder_telephone <=", value, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneLike(String value) {
            addCriterion("recorder_telephone like", value, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneNotLike(String value) {
            addCriterion("recorder_telephone not like", value, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneIn(List<String> values) {
            addCriterion("recorder_telephone in", values, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneNotIn(List<String> values) {
            addCriterion("recorder_telephone not in", values, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneBetween(String value1, String value2) {
            addCriterion("recorder_telephone between", value1, value2, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andRecorderTelephoneNotBetween(String value1, String value2) {
            addCriterion("recorder_telephone not between", value1, value2, "recorderTelephone");
            return (Criteria) this;
        }

        public Criteria andEnableIsNull() {
            addCriterion("enable is null");
            return (Criteria) this;
        }

        public Criteria andEnableIsNotNull() {
            addCriterion("enable is not null");
            return (Criteria) this;
        }

        public Criteria andEnableEqualTo(Byte value) {
            addCriterion("enable =", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotEqualTo(Byte value) {
            addCriterion("enable <>", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThan(Byte value) {
            addCriterion("enable >", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThanOrEqualTo(Byte value) {
            addCriterion("enable >=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThan(Byte value) {
            addCriterion("enable <", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThanOrEqualTo(Byte value) {
            addCriterion("enable <=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableIn(List<Byte> values) {
            addCriterion("enable in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotIn(List<Byte> values) {
            addCriterion("enable not in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableBetween(Byte value1, Byte value2) {
            addCriterion("enable between", value1, value2, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotBetween(Byte value1, Byte value2) {
            addCriterion("enable not between", value1, value2, "enable");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}